package com.qianda.qdminiapp.domain.model.activity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包活动
 * </p>
 *
 * @author cw
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdRedpacketActivity extends Model<QqdRedpacketActivity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 红包活动名称
     */
    private String name;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 活动状态: 0:上架   1:下架
     */
    private Integer activityStatus;

    /**
     * 金额总数
     */
    private BigDecimal amtTotal;

    /**
     * 红包总数
     */
    private Integer redCount;

    /**
     * 已领取个数
     */
    private Integer drawCount;

    /**
     * 是否删除  0：未删除   1:已删除
     */
    private Integer status;

    private Integer storeLimitCount;
    private Integer userLimitCount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
